package com.seed.service;

import com.seed.entity.User;
import com.seed.qo.UserQo;
import com.seed.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "seed-org")
public interface UserService {

    @GetMapping(value = "/user/get")
    Result<User> get(@RequestParam("id") Integer id);

    @PostMapping(value = "/user/save")
    Result<Integer> save(@RequestBody User user);


    @GetMapping(value = "/user/query")
    Result<User> query(@SpringQueryMap UserQo userQo);

}
